package org.jeecg.modules.iot.model;

import lombok.Data;

import java.sql.Timestamp;
@Data
public class SocketPort {
    private Timestamp ts;
    private Integer power; //当前端口可输出最大功率(0-1000W)
    private Integer portId;// 端口号(1-N)
    private Integer btStat;//端口状态( 0 端口关闭，1 端口输出)
    private Long outTime;//当前端口已打开输出时间秒(1-9999999)
    private Long energy;//端口累计输出电能(单位(W)瓦)
    private Long averagePower;//平均功耗
    private String deviceCode;//设备编号 4字节
    private String tableName;//状态 4字节


    public void setDeviceCode(String deviceCode) {
        this.deviceCode = deviceCode;
        this.tableName="t"+deviceCode;
    }


}
